// @ts-check

// 测试JavaScript 调用栈大小的限制

let recursiveTime = 0;
function recursiveFn() {
  recursiveTime++;
  recursiveFn();
}

try {
  recursiveFn();
} catch (error) {
  console.log(`recursiveTime:${recursiveTime},error:${error}`);
}